package com.tb.downgrade;

/**
 * 静态降级
 */
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.tb.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class DowngradeUtil {

    public static User orderBlockHandler(@PathVariable("id") Long id, BlockException e) {
        return new User(-1L, "限流咯！！！", "不要再进了，请稍后重试！！!");
    }

}
